package com.ymatou.iapi.productsynces.parameter.es;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.ymatou.iapi.activitymanage.service.returnProductActivityStockCall;
import com.ymttest.utils.compare.parameter.IgnoreParam;

public class EsProduct {
	private int ipid;
	private String pid;
	private String pname;
	private Date atime;
	private Date stime;
	private Date etime;
	private Date lutime;
	private int sid;
	private int bid;
	private String bname;
	private int mcateid;
	private int scateid;
	private int tcateid;
	private int pspstatus;
	private int catastatus;
	private int edtype;
	@IgnoreParam
	private int catatype;
	private boolean istop;
	private boolean isnew;
	private Date nstime;
	private Date netime;
	private boolean freeshipping;
	private boolean ispackage;
	private int stock;
	private boolean presale;
	//是否部分规格售罄
	private boolean ispso;
	
	private int ptype;
	private int gtype;
	//是否强制下架
	private int cs;
	//审核状态
	private int as;
	//spu商品编号 sppid
	private int sppid;
	//发布类型 0- 标准商品，1- 图片商品，2- 视频商品 pubtype
	private int pubtype;
	
	private Long gversion;
	private Integer dct;//1.官方 2.三方  Ymt_Products.deliveryCompanyType
	private Integer da;//时效 天 5,10,15  Ymt_Products.deliveryAging



	public boolean getIspso() {
		return ispso;
	}
	public void setIspso(boolean ispso) {
		this.ispso = ispso;
	}
	
	public boolean isPresale() {
		return presale;
	}
	public void setPresale(boolean presale) {
		this.presale = presale;
	}
	private List<EsLive> lives = new ArrayList<>();
	
	@IgnoreParam
	private List<EsCatalog> catalogs = new ArrayList<>();
	
	private List<EsActivity> activities = new ArrayList<>();
	
	
	
	public int getStock() {
		return stock;
	}
	public void setStock(int stock) {
		this.stock = stock;
	}
	public int getIpid() {
		return ipid;
	}
	public void setIpid(int ipid) {
		this.ipid = ipid;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public String getPname() {
		return pname;
	}
	public void setPname(String pname) {
		this.pname = pname;
	}
	public Date getAtime() {
		return atime;
	}
	public void setAtime(Date atime) {
		this.atime = atime;
	}
	public Date getStime() {
		return stime;
	}
	public void setStime(Date stime) {
		this.stime = stime;
	}
	public Date getEtime() {
		return etime;
	}
	public void setEtime(Date etime) {
		this.etime = etime;
	}
	public Date getLutime() {
		return lutime;
	}
	public void setLutime(Date lutime) {
		this.lutime = lutime;
	}
	public int getSid() {
		return sid;
	}
	public void setSid(int sid) {
		this.sid = sid;
	}
	public int getBid() {
		return bid;
	}
	public void setBid(int bid) {
		this.bid = bid;
	}
	public String getBname() {
		return bname;
	}
	public void setBname(String bname) {
		this.bname = bname;
	}
	public int getMcateid() {
		return mcateid;
	}
	public void setMcateid(int mcateid) {
		this.mcateid = mcateid;
	}
	public int getScateid() {
		return scateid;
	}
	public void setScateid(int scateid) {
		this.scateid = scateid;
	}
	public int getTcateid() {
		return tcateid;
	}
	public void setTcateid(int tcateid) {
		this.tcateid = tcateid;
	}
	public int getPspstatus() {
		return pspstatus;
	}
	public void setPspstatus(int pspstatus) {
		this.pspstatus = pspstatus;
	}
	public int getCatastatus() {
		return catastatus;
	}
	public void setCatastatus(int catastatus) {
		this.catastatus = catastatus;
	}
	public int getEdtype() {
		return edtype;
	}
	public void setEdtype(int edtype) {
		this.edtype = edtype;
	}
	public int getCatatype() {
		return catatype;
	}
	public void setCatatype(int catatype) {
		this.catatype = catatype;
	}
	public boolean isIstop() {
		return istop;
	}
	public void setIstop(boolean istop) {
		this.istop = istop;
	}
	public boolean isIsnew() {
		return isnew;
	}
	public void setIsnew(boolean isnew) {
		this.isnew = isnew;
	}
	public Date getNstime() {
		return nstime;
	}
	public void setNstime(Date nstime) {
		this.nstime = nstime;
	}
	public Date getNetime() {
		return netime;
	}
	public void setNetime(Date netime) {
		this.netime = netime;
	}
	public boolean isFreeshipping() {
		return freeshipping;
	}
	public void setFreeshipping(boolean freeshipping) {
		this.freeshipping = freeshipping;
	}
	public boolean isIspackage() {
		return ispackage;
	}
	public void setIspackage(boolean ispackage) {
		this.ispackage = ispackage;
	}
	public List<EsLive> getLives() {
		return lives;
	}
	public void setLives(List<EsLive> lives) {
		this.lives = lives;
	}
	public List<EsCatalog> getCatalogs() {
		return catalogs;
	}
	public void setCatalogs(List<EsCatalog> catalogs) {
		this.catalogs = catalogs;
	}
	public List<EsActivity> getActivities() {
		return activities;
	}
	public void setActivities(List<EsActivity> activities) {
		this.activities = activities;
	}
	
	public int getptype() {
		return ptype;
	}
	public void setptype(int ptype) {
		this.ptype = ptype;
	}
	
	
	public int getgtype() {
		return gtype;
	}
	public void setgtype(int gtype) {
		this.gtype = gtype;
	}
	
	public Long getgversion() {
		return gversion;
	}
	public void setgversion(Long gversion) {
		this.gversion = gversion;
	}
	
	/**
	 * 设置/取消  优选会员商品
	 */
	private boolean ismb;
	public boolean getismb() {
		return ismb;
	}
	public void setismb(boolean ismb) {
		this.ismb = ismb;
	}
	
	
	/**
	 * 是否是安利会商品
	 */
	private boolean alh;
	public boolean getAlh() {
		return alh;
	}
	public void setAlh(boolean alh) {
		this.alh = alh;
	}
	/**
	 * 	商品推广信息
	 */
	private promote promote;
	public void setPromote(promote promote)
	{
		this.promote=promote;
	}
	public promote getPromote(){
		return promote;
	}
	
	
	
	
	
	public int getCs() {
		return cs;
	}
	public void setCs(int cs) {
		this.cs = cs;
	}
	
	public int getAs() {
		return as;
	}
	public void setAs(int as) {
		this.as = as;
	}
	
	
	public int getSppid() {
		return sppid;
	}
	public void setSppid(int sppid) {
		this.sppid = sppid;
	}
	
	
	public int getPubtype() {
		return pubtype;
	}
	public void setPubtype(int pubtype) {
		this.pubtype = pubtype;
	}
	
	
	public int getDct() {
		return dct;
	}
	public void setDct(int dct) {
		this.dct = dct;
	}
	
	public int getDa() {
		return da;
	}
	public void setDa(int da) {
		this.da = da;
	}

	
	public static class promote{
		//推广开始时间
		private String stime;
		//推广开始时间
		private String etime;
		//达人id
		private ArrayList pids;
		public String getStime() {
			return stime;
		}
		public void setStime(String stime) {
			this.stime = stime;
		}
		public String getEtime() {
			return etime;
		}
		public void setEtime(String etime) {
			this.etime = etime;
		}
		
		public ArrayList getPids()
		{
			return pids;
		}
		public void setPids(ArrayList pids)
		{
			this.pids=pids;
		}
		
		
		
	}
}
